package com.ardan1.client.gin;

import com.ardan1.client.core.TestEditorPresenter;
import com.ardan1.client.core.TestEditorView;
import com.ardan1.client.place.ClientPlaceManager;
import com.ardan1.client.place.DefaultPlace;
import com.ardan1.client.place.NameTokens;
import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
import com.gwtplatform.mvp.client.gin.DefaultModule;

public class ClientModule extends AbstractPresenterModule {

	@Override
	protected void configure() {
		install(new DefaultModule(ClientPlaceManager.class));

		bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.editor);

		bindPresenter(TestEditorPresenter.class, TestEditorPresenter.MyView.class, TestEditorView.class, TestEditorPresenter.MyProxy.class);
	}
}
